<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group hidden">
        <input id="c-admin_id" data-rule="required" class="form-control" name="row[admin_id]" type="text" value="{$Think.session.admin.id}">
    </div>
    <div class="form-group">
        <label for="c-store_id" class="control-label col-xs-12 col-sm-2">{:__('店铺名')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if condition="$Think.session.admin.type"}
            <select  id="c-store_id" data-rule="required" class="form-control selectpicker" name="row[store_id]">
                {foreach name="storeList" item="vo"}
                <option value="{$vo.id}">{$vo.s_name}</option>
                {/foreach}
            </select>
            {else /}
            <input id="c-store_id" data-rule="required" class="form-control" size="50" name="row[store_id]" type="text" placeholder="输入店铺id">
            {/if}
        </div>
    </div>
    <div class="form-group hidden">
        <label for="c-openid" class="control-label col-xs-12 col-sm-2">{:__('Openid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-openid" class="form-control" name="row[openid]" type="text" value="{$info.openid}">
        </div>
    </div>
    <div class="form-group hidden">
        <label for="c-unionid" class="control-label col-xs-12 col-sm-2">{:__('Unionid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-unionid" class="form-control" name="row[unionid]" type="text" value="{$info.unionid}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-wechat_num" class="control-label col-xs-12 col-sm-2">{:__('Wechat_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wechat_num" class="form-control" name="row[wechat_num]" data-rule="required" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-phone" class="control-label col-xs-12 col-sm-2">手机号:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" class="form-control" name="row[phone]" data-rule="required" type="text" value="">
        </div>
    </div>
    <div class="form-group hidden">
        <label for="c-province" class="control-label col-xs-12 col-sm-2">{:__('Province')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-province" class="form-control" name="row[province]" type="text" value="{$info.province}" >
        </div>
    </div>

    <div class="form-group hidden">
        <label for="c-city" class="control-label col-xs-12 col-sm-2">{:__('City')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-city" class="form-control"  name="row[city]" type="text" value="{$info.city}" >
        </div>
    </div>
    <div class="form-group hidden">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-avatar" class="form-control"  name="row[avatar]" type="text" value="{$info.headimgurl}">
        </div>
    </div>

    {if condition="!$Think.session.admin.type"}
    <div class="form-group">
        <label for="c-check_pass" class="control-label col-xs-12 col-sm-2">审核状态:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-check_pass" data-rule="required" class="form-control selectpicker" name="row[check_pass]">
                {foreach name="check_list" item="vo"}
                <option value="{$key}">{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    {/if}

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled" id="form-submit">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
